const {
    getUserListDao,
    delUserLoginDao,
    addUserAvatorDao
} = require('../dao/userDao')

const userService = {
    getUserListService: async () => {
        let userList = await getUserListDao()
        return userList
    },
    //写逻辑
    delUserLoginService: async (req) => {
        let info = req
        let loginInfo = await delUserLoginDao(info)
        return loginInfo
    },
    addImageService:async (req) => {
        let body = req
        let addMsg = await addUserAvatorDao(body)
        return addMsg
    }
}

module.exports = userService